﻿@model LessBoard.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}
<section id="main" class="column">
    <article class="module width_full">
        <header>
            <h3>
                Create a New Account</h3>
        </header>
        <p>Use the form below to create a new account. </p>
        <p>Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length. </p>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
            <div>
                <fieldset>
                    <legend>Account Information</legend>
                    <div>
                        @Html.LabelFor(m => m.UserName)
                        @Html.TextBoxFor(m => m.UserName)
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <p></p>
                    <div>
                        @Html.LabelFor(m => m.Email)
                        @Html.TextBoxFor(m => m.Email)
                        @Html.ValidationMessageFor(m => m.Email)
                    </div>
                    <p></p>
                    <div>
                        @Html.LabelFor(m => m.Password)
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <p></p>
                    <div>
                        @Html.LabelFor(m => m.ConfirmPassword)
                        @Html.PasswordFor(m => m.ConfirmPassword)
                        @Html.ValidationMessageFor(m => m.ConfirmPassword)
                    </div>
                    <p></p>
                    <p>
                        <input type="submit" value="Register" />
                    </p>
                </fieldset>
            </div>
        }
    </article>
</section>
